hints = Params.parse(hints, {urgency: Urgency.NORMAL}, true);
- // Filter out chat, presence, calls and invitation notifications from
- // Empathy, since we handle that information from telepathyClient.js
- //
- // Note that empathy uses im.received for one to one chats and
- // x-empathy.im.mentioned for multi-user, so we're good here
- if (appName === 'Empathy' && hints['category'] === 'im.received') {
- // Ignore replacesId since we already sent back a
- // NotificationClosed for that id.
- id = this._nextNotificationId++;
- let idleId = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
- this._emitNotificationClosed(id, NotificationClosedReason.DISMISSED);
- return GLib.SOURCE_REMOVE;
- });
- GLib.Source.set_name_by_id(idleId, '[gnome-shell] this._emitNotificationClosed');
- return invocation.return_value(GLib.Variant.new('(u)', [id]));
- }
-
// Be compatible with the various hints for image data and image path
// 'image-data' and 'image-path' are the latest name of these hints, introduced in 1.2